package com.navinfo.data.journal;

import java.util.ArrayList;
import java.util.List;

public class JournalVertexV4 {
    List<String> timelist = new ArrayList<String>();
    int cityId;

    @Override
    public String toString() {
        StringBuffer sb = new StringBuffer().append("(start->");
        for (String res : timelist) {
            sb.append(String.valueOf(res)).append("->");
        }
        sb.append("end)");
        return "JournalVertex[cityId=" + cityId + ",timelist=" + sb.toString() + "]";
    }

    public JournalVertexV4(List<String> timelist, int cityId) {
        this.timelist = timelist;
        this.cityId = cityId;
    }

    public List<String> getTimelist() {
        return timelist;
    }

    public void setTimelist(List<String> timelist) {
        this.timelist = timelist;
    }

    public int getCityId() {
        return cityId;
    }

    public void setCityId(int cityId) {
        this.cityId = cityId;
    }
}
